﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using XiaoMan.BLL;
using XiaoMan.Model.Models;
using XiaoMan.Service;

namespace XiaoMan.API.Controllers
{
    [RoutePrefix("api/forumtopictype")]
    public class ForumTopicTypeController : ApiBaseController
    {
        Forum_Topic_TypeService ftt = new Forum_Topic_TypeService();

        /// <summary>
        /// 查询所有帖子主题类型的分类
        /// </summary>
        /// <returns></returns>
        [Route("getforumtopictype")]
        [HttpGet]
        public IHttpActionResult getForumTopicType()
        {
            List<Forum_Topic_Type> typeInfoList = ftt.GetList();
            return ApiSuccess(typeInfoList);
        }
    }
}